package com.ecnu.common.config;

import com.ecnu.common.config.EmailConfig;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

@Component
public class EmailConfigHolder {
    private static EmailConfig emailConfig;

    @Autowired
    public EmailConfigHolder(EmailConfig config) {
        emailConfig = config;
    }

    public static EmailConfig getConfig() {
        return emailConfig;
    }
}
